package com.estate.utils;

public class SexUtil {

	public static int getSexInt(String sexString){
		int sex = 0;
		
		if("男".equals(sexString)){
			sex = 1;
		}else if("女".equals(sexString)){
			sex = 2;
		}
		
		return sex;
	}
	
	public static String getSexString(int sexInt){
		String sex = "";
		
		if(sexInt == 1){
			sex = "男";
		}else if(sexInt == 2){
			sex = "女";
		}
		
		return sex;
	}
}
